package cg.project.controller;

import cg.project.pojo.Result;
import cg.project.pojo.User;
import cg.project.service.UserService;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 本来用来演示:
 *
 * @author success
 * @date 2024/11/5 14:41:49
 */
@RestController
@RequestMapping("index")
public class IndexController {

//    @Autowired
//    private UserService userService;
//
//    @GetMapping("user")
//    public Result index(){
//        PageInfo<User> pageInfo = userService.pageInfo(1,5);
//
//        return new Result("200","首页",pageInfo);
//    }
}